package lesson3;

public class Student {
	private String name;
	private int    age ;
	final  String  loc="hubei university";
	//final  String  postNo;
    public Student(){
    	this("Bob",20);
//    	this.postNo="PK";
    }
    public Student(String name){
    	this.name=name;
    }
    public Student(String name,int age){
    	this.age=age;
    	this.name=name;
    }
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
    

}
class Teststu{
	public static void main(String[] args) {
		Student s1=new Student();
		System.out.println(s1.getName()+" "+s1.getAge());
	}
}
